package com.jeecg.p3.system.advisor.dao;

import com.jeecg.p3.system.advisor.entity.StuAdvGroup;
import com.jeecg.p3.system.advisor.entity.StudyAdviser;
import org.apache.ibatis.annotations.Param;
import org.jeecgframework.p3.core.utils.common.PageQuery;
import org.jeecgframework.p3.core.utils.common.PageQueryWrapper;
import org.jeecgframework.p3.core.utils.persistence.GenericDao;

import java.util.List;

/**
 * TODO
 * Created on 2020-08-26$ 20:00$
 *
 * @author 张晓$
 * @version V1.0
 */
public interface StudyAdviserDao extends GenericDao<StudyAdviser> {
    public Integer count(PageQuery<StudyAdviser> pageQuery);

    public List<StudyAdviser> queryPageList(PageQueryWrapper<StudyAdviser> wrapper);

    /**
     * 根据参数获取顾问信息
     * @param adviser
     * @return
     */
    public List<StudyAdviser> findByParam(StudyAdviser adviser);

    public StudyAdviser findByUserNumber(@Param("userNumber") String userNumber);

    public void deleteByLogic(StudyAdviser adviser);
}
